package com.dao;

import com.entity.ReplyInfo;

import java.util.List;

/**
 * 帖子回复
 *
 * @author lbb
 * @version 1.0
 * @date 2020.3.2
 */
public interface ReplyInfoDao {
	/**
	 * 获取帖子的全部回复
	 *
	 * @param postingId 帖子ID
	 * @return List<ReplyInfo> 回复内容
	 */
	List<ReplyInfo> getAllPostingInfo(Integer postingId);
	
	/**
	 * 添加一条回复
	 *
	 * @param replyInfo 回复内容
	 * @return Boolean
	 */
	Boolean addReplyInfo(ReplyInfo replyInfo);
	
	/**
	 * 通过帖子ID删除全部回复
	 *
	 * @param postingId 帖子ID
	 * @return Boolean
	 */
	Boolean delAllReplyInfo(Integer postingId);
	
	/**
	 * 通过帖子ID获取到全部回复的ID
	 *
	 * @param postingId 帖子ID
	 * @return List<Integer> 回复ID集合
	 */
	List<Integer> getAllReplyInfoId(Integer postingId);
}
